<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/core" prefix="c"%>
<html:form action="/saveAdjustValuesToVersionBushels" styleId="bushelFormId">
	<table width="<bean:write name="totalSize"/>" align="center" border="0">
		<tr>
			<td style="width: 100%" align="center">
				<table width="100%" align="center" border="0" cellspacing="1" bgcolor="#CCCCC0">
					<logic:present name="BushelsVersionForm" property="bushelsVersionGroupsView">
						<logic:iterate name="BushelsVersionForm" property="bushelsVersionGroupsView" id="row" indexId="int_i" >						
							<tr class="columnadatoPar">
								<td width="147">
									<table width="100%" align="center" border="0" cellspacing="0" bgcolor="#CCCCC0">
										<tr class="columnadatoPar">
											<td height="20">
												<c:out value="${row.cornOriginView.description}"/>
											</td>
										</tr>			
									</table>
								</td>
								<logic:iterate name="row" property="bushelsVersionViews"  id="bushelVersionView" indexId="int_j" >
									<td>									
										<input type="text" name='bushelsVersionGroupsView[<c:out value="${int_i}"/>].bushelsVersionViews[<c:out value="${int_j}"/>].amount' value='<c:out value="${bushelVersionView.amount}"/>' onfocus="this.select();"  onkeyup="extractNumber(this,4,false);" class="columnanumero" size="13" /><br />																																																																																																																																																																																																																																																
									</td>
								</logic:iterate>
							</tr>
						</logic:iterate>		
					</logic:present>
					<tr>
						<td align="left" colspan="<bean:write name="totalPeriods"/>" height="30" class="etiqueta_campo">						
							<logic:notEmpty name="BushelsVersionForm" property="bushelsVersionGroupsView">
								<html:submit styleClass="boton"><bean:message key="label.common.save"/></html:submit>
							</logic:notEmpty>
							<html:button property="cancel" onclick="location.href = 'showVersionDetail.do'" styleClass="boton"><bean:message key="label.common.cancel"/></html:button>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>